﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Pay.Data {
	public partial class LogisticsNOMap
        : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<LogisticsNO> {
		public LogisticsNOMap() {
			// table
			ToTable("mc_LogisticsNO", "dbo");

			// keys
			HasKey(t => t.Id);

			// Properties
			Property(t => t.Id)
				.HasColumnName("Id")
				.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
				.IsRequired();
            Property(t => t.LogisticsNumber)
                  .HasColumnName("LogisticsNumber")
                  .HasMaxLength(50)
                  .IsOptional();
            Property(t => t.LogisticsStatus)
             .HasColumnName("LogisticsStatus")
             .IsOptional();
           
		}
	}
}
